<extend name="Public:common"/>
<block name="css">
    <style>
        .newMess th{text-align:center;}
        th,td{padding: 10px;}
    </style>
</block>
<block name="content">
    <div class="page-header"><h1><i class="fa fa-home"></i> 首页>系统设置>基本资料</h1></div>
     <div class="container-fluid">
         <form action="{:U('editPlatformInfo')}" method="post">
         <table class="table table-striped table-bordered table-hover table-condensed text-center">
             <tbody>
             <tr>
                 <td style="width:20%"><b>基本信息</b></td>
                 <td ></td>
             </tr>
             <tr>
                 <td><b> <span class="required">*</span>公司名称</b></td>
                 <td class="text-left">
                     <input type="text" name="company_name" placeholder="请输入公司名称" value="{$userInfo.company_name}" required />
                 </td>
             </tr>
             <tr>
                 <td><b> <span class="required">*</span>法人代表</b></td>
                 <td class="text-left">
                     <input type="text" name="legal_person"  value="{$userInfo.legal_person}" placeholder="请输入法人代表" required />
                 </td>
             </tr>
             <tr>
                 <td><b> <span class="required">*</span>营业执照编号</b></td>
                 <td class="text-left">
                     <input type="text" name="business_number" value="{$userInfo.business_number}" placeholder="请输入营业执照编号" required />
                 </td>
             </tr>
             <tr>
                 <td><b> <span class="required">*</span>身份证</b></td>
                 <td class="text-left">
                     <input type="text" name="id_number" value="{$userInfo.id_number}" placeholder="请输入身份证号码" required />
                 </td>
             </tr>
             <tr>
                 <td><b> <span class="required">*</span>业务类型</b></td>
                 <td class="text-left">
                     <select name="supplier_type" id="" required>
                         <option value="1" <if condition="$userInfo['supplier_type'] eq 1">selected</if> >国内服务商</option>
                         <option value="2" <if condition="$userInfo['supplier_type'] eq 2">selected</if> >国外服务商</option>
                     </select>
                 </td>
             </tr>
             <tr>
                 <td><b> <span class="required">*</span>币种</b></td>
                 <td class="text-left">
                     <select id='currency_id' name="currency_id" required disabled>
                         <volist name="currency" id="vo">
                             <option value="{$vo.currency_id}" <if condition="$userInfo['currency_id'] == $vo['currency_id']">selected</if>>{$vo.currency_name}</option>
                         </volist>
                     </select>
                 </td>
             </tr>
             <tr>
                 <td><b> <span class="required">*</span>联系人</b></td>
                 <td class="text-left">
                     <input type="text" name="linkman" value="{$userInfo.linkman}" placeholder="请填写联系人" required />
                 </td>
             </tr>
             <tr>
                 <td><b> <span class="required">*</span>公司电话</b></td>
                 <td class="text-left">
                     <input type="text" name="landline_tel"  value="{$userInfo.landline_tel}" placeholder="请填写公司电话" required />
                 </td>
             </tr>
             <tr>
                 <td><b> <span class="required">*</span>联系电话</b></td>
                 <td class="text-left">
                     <input type="text" name="supplier_phone"  value="{$userInfo.supplier_phone}" placeholder="请填写联系电话" required />
                 </td>
             </tr>
             <tr>
                 <td><b> <span class="required">*</span>所属地区</b></td>
                 <td class="text-left">
                     国家
                     <select name="country_id" id="ar_country_id"  onchange="getProvince(this,'ar')" required>
                         <option value="">==选择国家==</option>
                         <volist name="country" id="vo">
                             <option <if condition="$userInfo['country_id'] eq $vo['areaId']">selected</if> value="{$vo.areaId}">{$vo.areaName}</option>
                         </volist>
                     </select>
                     省
                     <select name="province_id" id="ar_province_id"  onchange="getCity(this,'ar')" required>
                         <option value="">==选择省==</option>
                         <volist name="province" id="vo">
                             <option <if condition="$userInfo['province_id'] eq $vo['areaId']">selected</if> value="{$vo.areaId}">{$vo.areaName}</option>
                         </volist>
                     </select>
                     市
                     <select name="city_id" id="ar_city_id"  onchange="getArea(this,'ar')" required>
                         <option value="">==选择市==</option>
                         <volist name="city" id="vo">
                             <option <if condition="$userInfo['city_id'] eq $vo['areaId']">selected</if> value="{$vo.areaId}">{$vo.areaName}</option>
                         </volist>
                     </select>
                     区
                     <select name="area_id"   id="ar_area_id" required>
                         <option value="">==选择区==</option>
                         <volist name="area" id="vo">
                             <option <if condition="$userInfo['area_id'] eq $vo['areaId']">selected</if> value="{$vo.areaId}">{$vo.areaName}</option>
                         </volist>
                     </select>
                 </td>
             </tr>
             <tr>
                 <td><b> <span class="required">*</span>QQ邮箱</b></td>
                 <td class="text-left">
                     <input type="email" name="qq_email" value="{$userInfo.qq_email}" placeholder="请填写QQ邮箱" required />
                 </td>
             </tr>
             <tr>
                 <td><b> <span class="required">*</span>公司地址</b></td>
                 <td class="text-left">
                     <input type="text" name="detailed_address"  value="{$userInfo.detailed_address}"   placeholder="请填写公司地址" required />
                 </td>
             </tr>
             <tr>
                 <td><b> 门店编号</b></td>
                 <td class="text-left">
                     <input type="text" name="shop_number"  value="{$userInfo.shop_number}"  placeholder="请填写门店编号"  />
                 </td>
             </tr>

             <tr>
                 <td><b>公司Logo</b></td>
                 <td class="text-left">
                     <input type="text" name="shop_logo_img" value="{$userInfo.shop_logo_img}" class="pull-left" readonly>
                     <input type="file" class="pull-left" onchange="ajax_upload_file(this.files,this)">
                     <img class="thumbImg pull-right" src="{$userInfo.shop_logo_img}" alt="">
                 </td>
             </tr>


             <tr>
                 <td><b>营业执照图片</b></td>
                 <td class="text-left">
                     <input type="text" name="business_img" value="{$userInfo.business_img}" class="pull-left" readonly>
                     <input type="file" class="pull-left" onchange="ajax_upload_file(this.files,this)">
                     <img class="thumbImg pull-right" src="{$userInfo.business_img}" alt="">
                 </td>
             </tr>
             <tr>
                 <td><b>身份证正面图片</b></td>
                 <td class="text-left">
                     <input type="text" name="id_img"  value="{$userInfo.id_img}"  class="pull-left" readonly>
                     <input type="file" class="pull-left" onchange="ajax_upload_file(this.files,this)">
                     <img class="thumbImg pull-right" src="{$userInfo.id_img}" alt="">
                 </td>
             </tr>
             <tr>
                 <td><b>身份证反面图片</b></td>
                 <td class="text-left">
                     <input type="text" name="id_img_reverse" value="{$userInfo.id_img_reverse}"  class="pull-left" readonly>
                     <input  type="file" class="pull-left " onchange="ajax_upload_file(this.files,this)">
                     <img class="thumbImg pull-right" src="{$userInfo.id_img_reverse}" alt="">
                 </td>
             </tr>

             <tr>
                 <td colspan="2">
                     <input type="submit" class="btn btn-primary" value="保存">
                 </td>
             </tr>

             </tbody>
         </table>
         </form>
     </div>
</block>
<block name="js">

</block>